<div id="nav">
		当前位置: <a href="?action=default">管理首页</a> <span>&gt;</span> 用户组权限
	</div>
<form id="theform" name="theform" action="?action=admingroup&op=editsave" method="post">
<input type="hidden" name="disabled[admingid]" value="<? echo $groupid?>">
<table style="margin-left:5px;">
	<? foreach($actions as $k=>$v){
        $child = explode('_',$v);
        if(in_array($k,array(0,4,9,12,17,20,24,29,36,37,42,43,44,45,46))){
        ?>
        <tr><td colspan="2"><b><? echo $operationstr[$v.'_lang']?>:</b>
        <input class="radio" type="radio" name="disabled[allow<? echo $v;?>]" value="1" <? if($group['allow'.$v]==1){?> checked="checked"<? }?> onclick="able('<? echo $v;?>')" <? if($groupid==1 && !in_array($administrator[id],$creatorarr)){?> disabled="disabled"<? }?>> 是
        <input class="radio" type="radio" name="disabled[allow<? echo $v;?>]" value="0" <? if(!$group['allow'.$v]){?> checked="checked"<? }?>  onclick="disable('<? echo $v;?>')" <? if($groupid==1 && !in_array($administrator[id],$creatorarr)){?> disabled="disabled"<? }?> > 否</td></tr>
        <? }else{?>
        <tr><td width="10"></td><td><? echo $operationstr[$v.'_lang']?>:</td></tr>
    <tr><td width="10"></td><td>
    <input class="radio" type="radio" name="disabled[allow<? echo $v;?>]" value="1" <? if($group['allow'.$v]==1){?> checked="checked"<? } $dis=explode('_','allow'.$v); if($group[$dis[0]]==0  || $groupid==1 && !in_array($administrator[id],$creatorarr)){?> disabled="disabled"<? }?> id="<? echo $v;?>">是<input class="radio" type="radio" name="disabled[allow<? echo $v;?>]" value="0"  <? if(!$group['allow'.$v]){?> checked="checked"<? }?>  <? if($group[$dis[0]]==0 || $groupid==1  && !in_array($administrator[id],$creatorarr)){?> disabled="disabled"<? }?> id="<? echo $v;?>" > 否</td>
    </tr>
        <? }?>
    <? }?>
    <tr><td colspan="2"><? if($groupid!=1 || in_array($administrator[id],$creatorarr)){?><button value="true" type="submit" name="adminadd" class="submit">提交保存</button><? }?></td></tr>
</table>
</form>
<script language="javascript" src="include/js/jquery.js?v=1.3.2"></script>
<script>
function disable(id){
	$(function() {
		$("input[id^='"+id+"']").attr("checked",'0');
	})
}
function able(id){
	$(function() {
		$("input[id^='"+id+"']").attr('disabled','');
	})
}
</script>